package com.dianping.cat.consumer.event.model.entity;

import com.dianping.cat.consumer.event.model.BaseEntity;
import com.dianping.cat.consumer.event.model.IVisitor;



public class GraphTrend
  extends BaseEntity<GraphTrend>
{
  private int m_duration;
/* 12 */   private String m_count = "";

/* 14 */   private String m_fails = "";





/* 20 */   public GraphTrend(int duration) { this.m_duration = duration; }




/* 25 */   public void accept(IVisitor visitor) { visitor.visitGraphTrend(this); }


  
  public boolean equals(Object obj) {
/* 30 */     if (obj instanceof GraphTrend) {
/* 31 */       GraphTrend _o = (GraphTrend)obj;

/* 33 */       if (getDuration() != _o.getDuration()) {
/* 34 */         return false;
      }
      
/* 37 */       return true;
    }
    
/* 40 */     return false;
  }

  
/* 44 */   public String getCount() { return this.m_count; }



/* 48 */   public int getDuration() { return this.m_duration; }



/* 52 */   public String getFails() { return this.m_fails; }





  
  public void mergeAttributes(GraphTrend other) {
/* 66 */     assertAttributeEquals(other, "graph-trend", "duration", Integer.valueOf(this.m_duration), Integer.valueOf(other.getDuration()));

/* 68 */     this.m_count = other.getCount();

/* 70 */     this.m_fails = other.getFails();
  }
  
  public GraphTrend setCount(String count) {
/* 74 */     this.m_count = count;
/* 75 */     return this;
  }
  
  public GraphTrend setDuration(int duration) {
/* 79 */     this.m_duration = duration;
/* 80 */     return this;
  }
  
  public GraphTrend setFails(String fails) {
/* 84 */     this.m_fails = fails;
/* 85 */     return this;
  }
  
  public GraphTrend() {}
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-consumer-3.0.0.jar!/com/dianping/cat/consumer/event/model/entity/GraphTrend.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */